﻿using System;
using viNews.Classes;
using viNews.Controllers;

public partial class Admin_Pages_viNews_Tags_ManageTags : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void LinkButtonNewTag_Click(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(TextBoxNewTag.Text))
            return;
        TagController.AddTag(new Tag(TextBoxNewTag.Text));
        Response.Redirect(Request.RawUrl);
    }
    protected void LinkButtonCancel_Click(object sender, EventArgs e)
    {        
        Response.Redirect(Request.RawUrl);
    }
}
